
export const modalMixins = {
  data () {
    return {
      flag: false,
      showClose: true,
      modalFlag: false,
      title: '',
      assembly: '',
    }
  },
  methods: {
    close () {
      this.flag = false;
    }
  }
};

export const detailMixins = {
  computed: {
    id () {
      return this.$route.query.id || '';
    },
    finisher () {
      return this.$route.query.finisher || '';
    },
    calibrationId () {
      return this.$route.query.calibrationId || '';
    }
  },
  methods: {
    goBack () {
      window.history.go(-1);
    }
  }
};
